import requests

url="http://127.0.0.1/api/test?test=1"
r =requests(url)
print("Status code:",r.status_code)

